#include <Socket.h>
#include <TransferCount.h>
#include <Address.h>
#include <iostream>
#include <stdlib.h>

Socket::Socket() : sd(-1)
{
}

Address Socket::getAddr()
{
   return addr;
}

TransferCount Socket::getTC()
{
   return tc;
}

int Socket::read(void *bf, size_t n)
{
   cout << "[" << pthread_self() << "] this: " << this  << 
      "******** Socket::read ********" << endl;
//   exit(-1);
  return -44;
}

int Socket::write(void *bf, size_t n)
{
   cout << "[" << pthread_self() << "] this: " << this  << 
      "******** Socket::write ********" << endl;
//   exit(-1);
   return -45;
}

void Socket::close()
{
   cout << "[" << pthread_self() << "] this: " << this  << 
      "******** Socket::close ********" << endl;
}
